//
//  CQBaseModel.m
//  Created by chen on 14/11/22.
//  Copyright © 2014年 chen. All rights reserved.
//

#import "CQBaseModel.h"

@implementation CQBaseModel
- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        //KVC赋值
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    
    return [[self alloc] initWithDictionary:dictionary] ;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
